/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Default_Frame.java
 *
 * Created on Oct 2, 2014, 6:06:34 PM
 */
package com.JD.StartStopMachine;

import javax.swing.JPanel;

/**
 *
 * @author admin
 */
public class StartStopMachineForm extends javax.swing.JFrame {

    /** Creates new form Default_Frame */
    public StartStopMachineForm() {
        initComponents();

        DefautFinal_Panel.removeAll();
        DefautFinal_Panel.add(defautPane_Fetchable);
        DefautFinal_Panel.repaint();

        // DefautFinal_Panel  defautPane_Fetchable
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        defaultPanelFromStartStopMachine_FrameClass = new javax.swing.JPanel();
        ToolPanel = new javax.swing.JPanel();
        startStop_Button = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jSeparator1 = new javax.swing.JSeparator();
        BackButton = new javax.swing.JButton();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        DefautFinal_Panel = new javax.swing.JPanel();
        defautPane_Fetchable = new javax.swing.JPanel();
        jLabel3 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        defaultPanelFromStartStopMachine_FrameClass.setBackground(new java.awt.Color(255, 102, 102));

        ToolPanel.setBackground(new java.awt.Color(102, 102, 255));
        ToolPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.lightGray, java.awt.Color.lightGray));

        startStop_Button.setBackground(new java.awt.Color(204, 204, 204));
        startStop_Button.setFont(new java.awt.Font("Verdana", 0, 12));
        startStop_Button.setText("Start/Stop Machine");
        startStop_Button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                startStop_ButtonActionPerformed(evt);
            }
        });

        jLabel1.setFont(new java.awt.Font("Verdana", 0, 36));
        jLabel1.setForeground(java.awt.Color.white);
        jLabel1.setText("START");

        jLabel2.setFont(new java.awt.Font("Verdana", 0, 36));
        jLabel2.setForeground(java.awt.Color.white);
        jLabel2.setText("OR");

        jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/JD/images/statonary2.gif"))); // NOI18N

        BackButton.setBackground(new java.awt.Color(204, 204, 204));
        BackButton.setFont(new java.awt.Font("Verdana", 0, 12));
        BackButton.setText("Back To Home");
        BackButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BackButtonActionPerformed(evt);
            }
        });

        jLabel9.setFont(new java.awt.Font("Verdana", 0, 36));
        jLabel9.setForeground(java.awt.Color.white);
        jLabel9.setText("STOP");

        jLabel10.setFont(new java.awt.Font("Verdana", 0, 36));
        jLabel10.setForeground(java.awt.Color.white);
        jLabel10.setText("MACHINE");

        javax.swing.GroupLayout ToolPanelLayout = new javax.swing.GroupLayout(ToolPanel);
        ToolPanel.setLayout(ToolPanelLayout);
        ToolPanelLayout.setHorizontalGroup(
            ToolPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ToolPanelLayout.createSequentialGroup()
                .addGroup(ToolPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(ToolPanelLayout.createSequentialGroup()
                        .addGap(47, 47, 47)
                        .addComponent(jLabel8))
                    .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(ToolPanelLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(ToolPanelLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel2))
                    .addGroup(ToolPanelLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel9))
                    .addGroup(ToolPanelLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel10))
                    .addGroup(ToolPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(BackButton, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(startStop_Button, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addContainerGap())
        );
        ToolPanelLayout.setVerticalGroup(
            ToolPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ToolPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(43, 43, 43)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(27, 27, 27)
                .addComponent(startStop_Button, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(28, 28, 28)
                .addComponent(BackButton, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(995, 995, 995)
                .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout DefautFinal_PanelLayout = new javax.swing.GroupLayout(DefautFinal_Panel);
        DefautFinal_Panel.setLayout(DefautFinal_PanelLayout);
        DefautFinal_PanelLayout.setHorizontalGroup(
            DefautFinal_PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        DefautFinal_PanelLayout.setVerticalGroup(
            DefautFinal_PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 809, Short.MAX_VALUE)
        );

        defautPane_Fetchable.setBackground(new java.awt.Color(255, 102, 51));

        jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/JD/images/statonary2.gif"))); // NOI18N

        javax.swing.GroupLayout defautPane_FetchableLayout = new javax.swing.GroupLayout(defautPane_Fetchable);
        defautPane_Fetchable.setLayout(defautPane_FetchableLayout);
        defautPane_FetchableLayout.setHorizontalGroup(
            defautPane_FetchableLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(defautPane_FetchableLayout.createSequentialGroup()
                .addGap(389, 389, 389)
                .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 188, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(420, Short.MAX_VALUE))
        );
        defautPane_FetchableLayout.setVerticalGroup(
            defautPane_FetchableLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(defautPane_FetchableLayout.createSequentialGroup()
                .addGap(29, 29, 29)
                .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(724, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout defaultPanelFromStartStopMachine_FrameClassLayout = new javax.swing.GroupLayout(defaultPanelFromStartStopMachine_FrameClass);
        defaultPanelFromStartStopMachine_FrameClass.setLayout(defaultPanelFromStartStopMachine_FrameClassLayout);
        defaultPanelFromStartStopMachine_FrameClassLayout.setHorizontalGroup(
            defaultPanelFromStartStopMachine_FrameClassLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, defaultPanelFromStartStopMachine_FrameClassLayout.createSequentialGroup()
                .addComponent(DefautFinal_Panel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(defautPane_Fetchable, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(ToolPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 231, javax.swing.GroupLayout.PREFERRED_SIZE))
        );
        defaultPanelFromStartStopMachine_FrameClassLayout.setVerticalGroup(
            defaultPanelFromStartStopMachine_FrameClassLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(ToolPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 809, Short.MAX_VALUE)
            .addComponent(DefautFinal_Panel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(defaultPanelFromStartStopMachine_FrameClassLayout.createSequentialGroup()
                .addComponent(defautPane_Fetchable, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        getContentPane().add(defaultPanelFromStartStopMachine_FrameClass, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1240, 660));

        pack();
        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        java.awt.Dimension dialogSize = getSize();
        setLocation((screenSize.width-dialogSize.width)/2,(screenSize.height-dialogSize.height)/2);
    }// </editor-fold>//GEN-END:initComponents

    private void startStop_ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_startStop_ButtonActionPerformed
        // TODO add your handling code here:

        DefautFinal_Panel.removeAll();
        DefautFinal_Panel.add(new StartStop_Home().getStartStop_Panel());
        DefautFinal_Panel.repaint();


    }//GEN-LAST:event_startStop_ButtonActionPerformed

    private void BackButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BackButtonActionPerformed
        // TODO add your handling code here:
        DefautFinal_Panel.removeAll();
        DefautFinal_Panel.add(defautPane_Fetchable);
        DefautFinal_Panel.repaint();
    }//GEN-LAST:event_BackButtonActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new StartStopMachineForm().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton BackButton;
    private javax.swing.JPanel DefautFinal_Panel;
    private javax.swing.JPanel ToolPanel;
    public javax.swing.JPanel defaultPanelFromStartStopMachine_FrameClass;
    private javax.swing.JPanel defautPane_Fetchable;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JButton startStop_Button;
    // End of variables declaration//GEN-END:variables

    public JPanel getDefaultPanelFromStartStopMachine_FrameClass() {
        return defaultPanelFromStartStopMachine_FrameClass;
    }

  
}
